﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._211217
{
    /// <summary>
    ///  获取商品规格列表
    /// </summary>
    public class InputDDSpecParam
    {
        /// <summary>
        ///  商品id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入商品id")]
        public int fileID { get; set; }
        /// <summary>
        ///  规格类别
        /// </summary>
        [Required(ErrorMessage = "规格类别必传！")]
        public string specType { get; set; } = "文本";
        /// <summary>
        ///  是否影响价格 【-1=全部、0=不影响价格、1=影响价格】
        /// </summary>
        public int specMoney { get; set; } = -1;
    }
}